home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / host.h < prev    next >
C/C++ Source or Header  |  1997-01-19  |  2KB  |  54 lines

  1. /* Declarations for host.c
  2.    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18.  
  19. #ifndef HOST_H
  20. #define HOST_H
  21.  
  22. #include "url.h"
  23.  
  24. /* Host list entry */
  25. typedef struct _my_host {
  26.    char *hostname;
  27.    char *realname;
  28.    int quality;
  29.    struct _my_host *next;
  30. } host_t;
  31.  
  32. /* Function declarations */
  33.  
  34. struct hostent *ngethostbyname PARAMS((const char *));
  35. int store_hostaddress PARAMS((unsigned char *, const char *));
  36.  
  37. host_t *add_hlist PARAMS((host_t *, const char *, const char *, int));
  38. host_t *search_host PARAMS((host_t *, const char *));
  39. host_t *search_address PARAMS((host_t *, const char *));
  40. void free_hlist PARAMS((host_t *));
  41. void clean_hosts PARAMS((void));
  42.  
  43. char *realhost PARAMS((const char *));
  44. int same_host PARAMS((const char *, const char *));
  45.  
  46. int accept_domain PARAMS((urlinfo *));
  47. int sufmatch PARAMS((const char **, const char *));
  48.  
  49. char *ftp_getaddress PARAMS((void));
  50.  
  51. char *herrmsg PARAMS((int));
  52.  
  53. #endif /* HOST_H */
  54.